<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('新增')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-channelWithdrawalBank-add">
			<input type="hidden" id="channelId" name="channelId" th:value="${mpChannel.id}">
			<div class="form-group">
				<label class="col-xs-2 control-label">银行类型：</label>
				<div class="col-xs-10">
					<label th:each="bank:${banks}" class="check-box">
						<input name="bankIds" type="checkbox" th:value="${bank.id}" th:text="${bank.name}">
					</label>
				</div>
			</div>
		</form>
	</div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "channel/channelWithdrawalBank";
		$("#form-channelWithdrawalBank-add").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/add", $('#form-channelWithdrawalBank-add').serialize());
	        }
	    }
	</script>
</body>
</html>
